-- GENERATED SPELL FOR [Talbuk Thorngrazer] --


function spell0_17131(pUnit, Event) --@Gore,n/a--
pUnit:FullCastSpellOnTarget(32019,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17131', 15000, 1)
end

function spell1_17131(pUnit, Event) --@Talbuk Strike,n/a--
pUnit:FullCastSpellOnTarget(32020,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17131', 640, 1)
end

function Sorts_17131(pUnit, Event)
local choix_sorts_17131 = math.random(0, 1)
if choix_sorts_17131 == 0 then
pUnit:RegisterEvent('spell0_17131', 1, 1)
end
if choix_sorts_17131 == 1 then
pUnit:RegisterEvent('spell1_17131', 1, 1)
end
end

function mob17131_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17131', math.random(1500, 3000), 1)
end

function mob17131_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17131_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17131_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17131, 1, 'mob17131_Action')
RegisterUnitEvent(17131, 2, 'mob17131_Leave')
RegisterUnitEvent(17131, 3, 'mob17131_Kill')
RegisterUnitEvent(17131, 4, 'mob17131_Die')
